<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>UMEditor Demo</title>
    <link rel="stylesheet" href="/static/vendor/umeditor-1.2.2/themes/default/css/umeditor.css"/>
</head>
<body>
<div style="width:800px;margin:20px auto 40px;">
    <div type="text/plain" id="editor" style="width:100%;height:360px;">
        var temp
    </div>
</div>
</body>
<script charset="utf-8" src="/static/js/jquery.min.js"></script>
    <script charset="utf-8" src="/static/vendor/umeditor-1.2.2/third-party/template.min.js"></script>
    <script charset="utf-8" src="/static/vendor/umeditor-1.2.2/umeditor.config.js"></script>
    <script charset="utf-8" src="/static/vendor/umeditor-1.2.2/umeditor.js"></script>
    <script charset="utf-8" src="/static/vendor/umeditor-1.2.2/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
    $(function () {
        var um = UM.getEditor('editor');
        um.execCommand('insertHtml', 'Hello UMEditor.')
    });
</script>
</html>